<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="Public/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="Public/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="Public/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="Public/Flat/img/favicon.ico">
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	    <link rel="stylesheet" type="text/css" href="Public/hdjs/hdjs.css"/>
		<script type="text/javascript" src="Public/jquery-1.8.2.min.js"></script>
		<script type="text/javascript" src="Public/hdjs/hdjs.min.js"></script>
	</head>
	<body>
		<form action="" method="post" onsubmit="return hd_submit(this,'{{U("Cate/edit")}}','{{U("Cate/index")}}')">
		<div class="alert alert-success" >编辑分类</div>
		<div class="form-group">
			<label for="exampleInputEmail1">分类名称</label>
			<input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入分类名称"  name="cname" value="{{$oldData['cname']}}">
		</div>
		<div class="form-group">
			<label for="exampleInputEmail1">所属分类</label>
			<select name="pid" class="form-control">
				{{foreach from="$cateData" key="$k" value="$v"}}
				<option value="{{$v['cid']}}" <?php if($oldData['pid']==$v['cid']){?>selected<?php } ?>>
					{{$v['_cname']}}
					</option>
					{{endforeach}}
			</select>
		</div>
		<div class="form-group">
			<label for="exampleInputEmail1">所属类型</label>
			<select name="tid" class="form-control">
				<option value="0">请选择类型</option>
				
			</select>
		</div>
		
		<div class="form-group">
			<label for="exampleInputEmail1">分类排序</label>
			<input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入分类排序" required="" name="sort" value="100">
		</div>
		
	
		<button class="btn btn-primary btn-block" type="submit"> 确定 </button>
		</form>
		
	</body>
</html>
